<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Svg demo</title>
  <style>
    .demo {
      width: 200px;
      height: 200px;
      background: #eee;
      margin: 0 auto;
    }
  </style>
</head>
<body>
  <div class="watermark-svg"><span class="user-name">user-name</span></div>
  <div class="demo">
    <svg 
      xmlns="http://www.w3.org/2000/svg"
      xmlns:xlink="http://www.w3.org/1999/xlink"
      class="watermark-svg"
      viewBox="0 0 35 35"
      >
      <defs>
        <style>
          .watermark-svg .path{
            transform: rotate(-45deg);
            transform-origin: center;
            fill: #3E3E50;
          }
          .watermark-svg .user-name {
            font-size: 4px;
          }
          .watermark-svg .time {
            font-size: 2px;
          }
          .watermark-svg .env {
            font-size: 2px;
          }
        </style>
      </defs>
      <g class="path">
        <text text-anchor="start" x="25%" y="50%" class="user-name">watermark</text>
        <text text-anchor="start" x="25%" y="50%" dy="-3" dx="0" class="env">development</text>
        <text text-anchor="start" x="25%" y="50%" dy="2" dx="0" class="time">2019-01-23 12:45:33</text>
      </g>
    </svg>
  </div>
</body>
</html>